﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.IO;
using ICSharpCode.AvalonEdit;

namespace WpfMvvmDemo
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            this.DataContext = new MainWindowViewModel();

            foreach (var item in tabControl.Items)
            {
                ((TabItem)item).Visibility = Visibility.Collapsed;
            }
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {


        }

        private void RadioBtn_Mvvm_Click(object sender, RoutedEventArgs e)
        {
            tabControl.SelectedIndex = 0;
        }

        private void RadioBtn_Style_Click(object sender, RoutedEventArgs e)
        {
            tabControl.SelectedIndex = 1;
        }
    }
}